package com.gnote.repair.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gnote.repair.domain.SysRole;
import com.gnote.repair.mapper.SysRoleMapper;
import com.gnote.repair.service.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Gnote
 * @description 针对表【sys_role(角色表)】的数据库操作Service实现
 * @createDate 2025-02-25 14:13:33
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
        implements SysRoleService {


    @Override
    public List<SysRole> getRolesByUserId(Long userId) {
        return this.baseMapper.getRolesByUserId(userId);
    }
}




